package com.bootdo.wx.service.impl;

import com.bootdo.common.utils.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.wx.dao.GoodsLiveAppointmentDao;
import com.bootdo.wx.domain.GoodsLiveAppointmentDO;
import com.bootdo.wx.service.GoodsLiveAppointmentService;



@Service
public class GoodsLiveAppointmentServiceImpl implements GoodsLiveAppointmentService {
	@Autowired
	private GoodsLiveAppointmentDao goodsLiveAppointmentDao;
	
	@Override
	public GoodsLiveAppointmentDO get(String id){
		return goodsLiveAppointmentDao.get(id);
	}
	
	@Override
	public List<GoodsLiveAppointmentDO> list(Map<String, Object> map){
		return goodsLiveAppointmentDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return goodsLiveAppointmentDao.count(map);
	}
	
	@Override
	public int save(GoodsLiveAppointmentDO goodsLiveAppointment){
		return goodsLiveAppointmentDao.save(goodsLiveAppointment);
	}
	
	@Override
	public int update(GoodsLiveAppointmentDO goodsLiveAppointment){
		return goodsLiveAppointmentDao.update(goodsLiveAppointment);
	}
	
	@Override
	public int remove(String id){
		return goodsLiveAppointmentDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return goodsLiveAppointmentDao.batchRemove(ids);
	}

    @Override
    public List<GoodsLiveAppointmentDO> likeList(Map<String, Object> map){
        return goodsLiveAppointmentDao.likeList(map);
    }

	/**
	 * 根据直播id获取预约直播列表
	 * @param
	 * @return
	 */
	@Override
	public List<Map<String, Object>> getAppointmentListByLiveId(Map<String, Object> map) {
		return goodsLiveAppointmentDao.getAppointmentListByLiveId(map);
	}

}
